#!/usr/bin/env python
# -*- coding:utf8 -*-
"""
Author : mafei
Date   : 2019-12-22
"""
from .base import ViewBase


class UserLogoutView(ViewBase):

    def get(self, request):
        return self.ok_response()

    def put(self, request):
        return self.ok_response()

    def post(self, request):
        del request.session['user']
        return self.ok_response()
